package com.woniuxy.tmsdriverassignment.service;

import com.woniuxy.tmsdriverassignment.domain.Contract;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Interface
 * <P> TODO:
 * <P> Date: 2022/4/20:19:24
 * <P> Description:
 */
@Service
public interface ContractService {
    //新增合同
    void addContract(Contract contract);

    //修改合同
    void updateContract(Contract contract);

    //删除合同
    void deleteContract(int id);

    List<Contract> allContract();

    Contract getContractById(int id);

    List<Contract> getOne(Contract contract);
}
